<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/1/4
  Time: 14:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>搜索商品</title>
    <style>
        .main {
            border: 2px solid cornflowerblue;
        }

        .main_msg {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            margin-bottom: 20px;
        }

        .black_text {
            width: 100px;
            font-size: 16px;
            color: black;
            font-weight: bold;
        }

        .black_text + td {
            padding: 2px;
        }

        table, tr, td {
            border: 1px solid rgb(152, 194, 193);
            text-align: center;
        }

        td {
            padding: 9px;
        }

        table {
            margin: auto;
            width: 650px;
        }

        .main_msg_detail span {
            padding: 10px;
        }

        button {
            width: 100px;
            height: 33px;
        }

        .text_input {
            width: 100%;
            height: 27px;
        }

        select {
            width: 100%;
            height: 27px;
        }

        textarea {
            resize: none;
            height: 80px;
            width: 100%;
        }

        .number_input {
            width: 80%;
            height: 27px;
            float: left;
        }

    </style>
</head>
<body>

<div style="width: 760px">
    <%@ include file="../common/header.jsp" %>

    <div class="main">
        <div style="margin: 10px 20px">
            <img src="../img/product.gif" alt="商品">
        </div>
        <div class="main_msg">
            <div style="margin-bottom: 10px;color: cornflowerblue;font-size: 22px"><b>请搜索你要的商品
            </b></div>
        </div>

        <form action="${pageContext.request.contextPath}/pro/search" method="post">
            <table cellspacing="0" cellpadding="12">

                <tr>
                    <td class="black_text">搜索内容:</td>
                    <td colspan="3">
                        <input type="text" class="text_input" name="searchvalue">
                    </td>
                </tr>

                <tr>
                    <td class="black_text">搜索条件:</td>
                    <td colspan="3">
                        <select name="searchname">
                            <c:forEach items="${columns}" var="c">
                                <option value="${c}">${c}</option>
                            </c:forEach>
                        </select>
                    </td>
                </tr>

                <tr>
                    <td colspan="2">
                        <button>开始搜索</button>
                    </td>
                </tr>
            </table>
        </form>
        <div style="text-align: center;margin: 20px;font-size: 22px">
            <a href="./add">点击此添加新的商品</a>
        </div>

    </div>
    <%@ include file="../common/footer.jsp" %>
</div>
</body>
</html>
